home *** CD-ROM | disk | FTP | other *** search
- Path: EU.net!sk2eu!news
- From: lipocky@crick.fmed.uniba.sk (Martin Lipocky)
- Newsgroups: comp.lang.c++
- Subject: HELP: ffblk structure
- Date: Tue, 9 Apr 1996 16:38:55 GMT
- Organization: Gatewayed by EUnet Slovakia, Bratislava, Slovak Republic
- Sender: news@sk2eu.eunet.sk (News Administrator)
- Message-ID: <DpLsww.4Ev@sk2eu.eunet.sk>
- NNTP-Posting-Host: sk2eu.eunet.sk
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-Newsreader: WinVN 0.99.7
-
- Hi there,
-
- I'm a beginner in Borland C++ 3.1. Often I have problems with variables but now
- I've got a big problem. I cannot find out the date and time of a file in REAL format
- from the sub-variables ff_ftime and ff_fdate. These are member of ffblk structure.
- I took the ffblk structure description from HELP for you. I hope you'll help me.
- As you can see below ff_ftime and ff_fdate are integers it means in the member
- is a simple number. Please send me some steps how to get the time and date in
- real format from an integer.
-
- #begin of help
-
- ffblk <DIR.H>
-
- DOS file control block structure.
-
-
- struct ffblk {
- char ff_reserved[21]; /* reserved by DOS */
- char ff_attrib; /* attribute found */
- int ff_ftime; /* file time */
- int ff_fdate; /* file date */
- long ff_fsize; /* file size */
- char ff_name[13]; /* found file name */
- };
-
- Remarks
-
- ff_ftime and ff_fdate are 16-bit structures divided into bit fields for referring to the
- current date and time.
-
- The structure of these fields was established by DOS.
-
- #End of help
-
- C ya,
-
- bye.
-
- Martin.
-
- Office:
- Martin Lipocky
- Email: lipocky@crick.fmed.uniba.sk
- WWW: http://crick.fmed.uniba.sk:80/~lipocky/
- Phone: ++42(7)214000 ext. 237
- Bratislava, SLOVAKIA
-
-
-